﻿<div class="container-fluid b-space" style="padding-top: 15px;">
    <div class="row">
        <div class="col-xs-2 col-xs-offset-2">
            <div class="input-group input-group-sm">
                <span class="input-group-addon">姓名</span>
                <input type="text" class="form-control" ng-model="search.condition.name"/>
            </div>
        </div>
        <div class="col-xs-4">
            <div class="input-group input-group-sm">
                <span class="input-group-addon">身份证号码</span>
                <input type="text" class="form-control" ng-model="search.condition.id_card"/>
            </div>
        </div>
        <div class="col-xs-2">
            <div class="btn-group btn-group-sm">
                <button type="button" class="btn btn-primary" ng-click="search.from_server()">
                    搜索</button>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="dataTable_wrapper">
                        <div id="Div1" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer dtr-inline no-wrap"
                                           role="grid" aria-describedby="dataTables-example_info" style="width: 100%;">
                                        <thead>
                                        <tr role="row">
                                            <th rowspan="1" colspan="1">
                                                姓名
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                性别
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                身份证号码
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                出生日期
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                个人编号
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                是否为<br/>80岁老人
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                医疗待遇类别
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                社会保险<br/>经办机构编码
                                            </th>
                                            <th rowspan="1" colspan="1">
                                                人员类型
                                            </th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr ng-repeat="_this in search.result">
                                            <td>
                                                {{_this.AAC003}}
                                            </td>
                                            <td>
                                                {{_this.AAC004 > 1 ? '女' : '男'}}
                                            </td>
                                            <td>
                                                {{_this.AAC002}}
                                            </td>
                                            <td>
                                                {{_this.AAC006}}
                                            </td>
                                            <td>
                                                {{_this.AAC001}}
                                            </td>
                                            <td>
                                                {{_this.AAE008 > 0 ? '是' : '否'}}
                                            </td>
                                            <td>
                                                {{_this.AKC021}}
                                            </td>
                                            <td>
                                                {{_this.AAB034}}
                                            </td>
                                            <td>
                                                {{query_person_type(_this.AAC041)}}
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-5">
                                    <div class="dataTables_length">
                                        <label>
                                            每页显示
                                            <select ng-change="search.from_server()" ng-model="page.size" class="form-control input-sm"
                                                style="height: 25px;">
                                                <option value="15" ng-selected="page.size == 15">15</option>
                                                <option value="25" ng-selected="page.size == 25">25</option>
                                                <option value="50" ng-selected="page.size == 50">50</option>
                                                <option value="100" ng-selected="page.size == 100">100</option>
                                            </select>条，共{{page.all_items.last()}}页{{page.record_count}}条记录
                                        </label>
                                    </div>
                                </div>
                                <div class="col-sm-7">
                                    <div class="dataTables_paginate paging_simple_numbers">
                                        <ul class="pagination" style="margin: 0;">
                                            <li ng-click="page.turn_to(0)" ng-disabled="page.filtered.length == 1" class="paginate_button">
                                                <a href="javascript:void(0)">第一页</a> </li>
                                            <li ng-click="page.turn_to(page.index - 1)" ng-disabled="page.filtered.length == 1"
                                                class="paginate_button previous"><a href="javascript:void(0)">&laquo;</a> </li>
                                            <li ng-repeat="item in page.filtered track by $index" ng-click="page.turn_to(item - 1)"
                                                ng-class="{active: (page.index + 1) == item}" class="paginate_button"><a href="javascript:void(0)">
                                                    {{item}}</a> </li>
                                            <li ng-click="page.turn_to(page.index + 1)" ng-disabled="page.filtered.length == 1"
                                                class="paginate_button next"><a href="javascript:void(0)">&raquo;</a> </li>
                                            <li ng-click="page.turn_to(page.all_items.length - 1)" ng-disabled="page.filtered.length == 1"
                                                class="paginate_button"><a href="javascript:void(0)">最后一页</a> </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>